
/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2021-10-25
 * Time: 17:29
 */
public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree=new BinaryTree();
        binaryTree.insertTreeNor(12);
        binaryTree.insertTreeNor(6);
        binaryTree.insertTreeNor(9);
        binaryTree.insertTreeNor(10);
        binaryTree.insertTreeNor(18);
        binaryTree.inorder(binaryTree.root);
        System.out.println();
        binaryTree.preorder(binaryTree.root);
        System.out.println();
        System.out.println("================");
        binaryTree.remove(9);
        binaryTree.preorder(binaryTree.root);
        System.out.println();
        binaryTree.inorder(binaryTree.root);


    }

}
